home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 1: Comms & Networking / Almathera Ten on Ten - Disc 1: Comms & Networking.iso / amiga-useful / perl / faq / 1.5_availability < prev    next >
Text File  |  1995-05-04  |  46KB  |  978 lines

  1. Newsgroups: comp.lang.perl,comp.answers,news.answers
  2. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!hookup!news.kei.com!news.mathworks.com!news2.near.net!howland.reston.ans.net!news.sprintlink.net!ddi2.digital.net!vx!usenet!spp
  3. From: spp@vx.com
  4. Subject: comp.lang.perl FAQ 1/5 - Availability
  5. Message-ID: <SPP.95Apr4140816@squid.vx.com>
  6. Followup-To: poster
  7. Sender: usenet@vx.com
  8. Nntp-Posting-Host: squid
  9. Organization: Varimetrix Corporation
  10. Date: Tue, 4 Apr 1995 18:08:16 GMT
  11. Approved: news-answers-request@MIT.EDU
  12. Lines: 963
  13. Xref: senator-bedfellow.mit.edu comp.lang.perl:47088 comp.answers:11035 news.answers:41332
  14.  
  15. Archive-name: perl-faq/part1
  16. Version: $Id: part1,v 2.7 1995/04/04 16:38:25 spp Exp spp $
  17. Posting-Frequency: bi-weekly
  18. Change-Log: $Log: part1,v $
  19. # Revision 2.7  1995/04/04  16:38:25  spp
  20. # 03/23/95 -  Added information about Matthias Neeracher's PowerPC Mac port.
  21. #
  22. # Revision 2.6  1995/03/17  16:46:57  spp
  23. # 02/21/95 -  Fixed typos
  24. # 02/24/95 -  Fixed missing address
  25. # 02/27/95 -  Updated info on NT port
  26. #
  27. # Revision 2.5  1995/01/31  14:44:47  spp
  28. # 01/23/95 -  Fixed perl5-porters address
  29. # 01/23/95 -  Fixed unknown IP address
  30. # 01/25/95 -  Fixed typos
  31. # 01/30/95 -  Added information on Amiga port
  32. # 01/31/95 -  Reworked section on documentation to include TeXinfo source
  33. #
  34.  
  35.  
  36. This posting contains answers to general information and availability
  37. questions.  The following questions are answered in this posting: 
  38.  
  39.  
  40. 1.1) What is Perl?
  41.     
  42.     Perl is a compiled scripting language written by Larry Wall*.
  43.  
  44.     Here's the beginning of the description from the perl(1) man page:
  45.  
  46.     Perl is an interpreted language optimized for scanning arbi-
  47.     trary  text  files,  extracting  information from those text
  48.     files, and printing reports based on that information.  It's
  49.     also  a good language for many system management tasks.  The
  50.     language is intended to be practical  (easy  to  use,  effi-
  51.     cient,  complete)  rather  than  beautiful  (tiny,  elegant,
  52.     minimal).  It combines (in  the  author's  opinion,  anyway)
  53.     some  of the best features of C, sed, awk, and sh, so people
  54.     familiar with those languages should have little  difficulty
  55.     with  it.  (Language historians will also note some vestiges
  56.     of csh, Pascal,  and  even  BASIC-PLUS.)  Expression  syntax
  57.     corresponds  quite  closely  to C expression syntax.  Unlike
  58.         most Unix utilities, perl does  not  arbitrarily  limit  the
  59.     size  of your data--if you've got the memory, perl can slurp
  60.         in your whole file as a  single  string.   Recursion  is  of
  61.     unlimited  depth.   And  the hash tables used by associative
  62.         arrays grow as necessary to  prevent  degraded  performance.
  63.     Perl  uses sophisticated pattern matching techniques to scan
  64.         large amounts of data very quickly.  Although optimized  for
  65.     scanning  text, perl can also deal with binary data, and can
  66.         make dbm files look like associative arrays  (where  dbm  is
  67.     available).   Setuid  perl scripts are safer than C programs
  68.         through a dataflow tracing  mechanism  which  prevents  many
  69.     stupid  security  holes.   If  you have a problem that would
  70.         ordinarily use sed or awk or sh, but it exceeds their  capa-
  71.     bilities  or must run a little faster, and you don't want to
  72.         write the silly thing in C, then perl may be for you.  There
  73.     are  also  translators to turn your sed and awk scripts into
  74.         perl scripts.  OK, enough hype.
  75.  
  76.  
  77. 1.2) What are perl4 and perl5, are there any differences?
  78.  
  79.     Perl4 and perl5 are different versions of the language.  Perl4 was the
  80.     previous release, and perl5 is "Perl: The Next Generation."
  81.     Perl5 is, essentially, a complete rewrite of the perl source code
  82.     from the ground up.  It has been modularized, object oriented, 
  83.     tweaked, trimmed, and optimized until it almost doesn't look like
  84.     the old code.  However, the interface is mostly the same, and
  85.     compatibility with previous releases is very high.
  86.  
  87.  
  88. 1.3) What features does perl5 provide over perl4?
  89.  
  90.     If you get the newest source (from any of the main FTP sites), you will
  91.     find a directory full of man pages (possibly to be installed as section
  92.     1p and 3pm) that discuss the differences, new features, old
  93.     incompatibilies and much more.  Here, however, are some highlights as
  94.     to the new feature and old incompatibilites.
  95.  
  96.     * Enhanced Usability:  Perl code can now be written in a much more
  97.     legible style.  Regular expressions have been enhanced to allow
  98.     minimal matches, conditionals, and much more.  Cryptic variable
  99.     names (although still supported) have been aliased to new
  100.         nmemonics, using the "English" module, allowing old scripts to run
  101.         and new scripts to be readable.  Error messages and optional
  102.         warnings are more informative and will catch many common mistakes.
  103.         See the perldiag(1) man page, which contains pithy prose from Larry
  104.         Wall* on each and every possible muttering perl might spout at you.
  105.     * Simplified Grammar:  The new yacc grammar is one half the size of
  106.     the old one.  Many of the arbitrary grammer rules have been
  107.     regularized.  The number of reserved words has been cut by 2/3.
  108.     * Lexical Scoping:  Perl variables may now be declared within a
  109.     lexical scope, similar to C's "auto" variables.  This is a
  110.     great improvement on efficiency and contributes to better
  111.     privacy.  See the my() entry in perlfunc(1).
  112.     * Arbitrarily nested data structures:  Full fledged multidimensional
  113.     arrays.  Any scalar value, including an array element, may now
  114.     contain a reference to any other variable or subroutine.
  115.     Easily created anonymous variables and subroutines.  See
  116.         perlref(1).
  117.     * Modularity and Reusability:  The Perl library is now defined in
  118.     terms of modules which can be easily shared among various
  119.     packages.  Packages can import any or all of a module's
  120.     published interface.  See perlmod(1), perlsub(1), and
  121.         Exporter(3pm). 
  122.     * Object-oriented programming:  A package can function as a class.
  123.     Dynamic multiple inheritance and virtual methods are supported
  124.     in a straight-forward manner with little new syntax.  Filehandles
  125.     are now treated as objects.  See perlobj(1), perlmod(1), and
  126.         FileHandle(3pm). 
  127.     * Embeddible and Extensible:  Perl can be easily embedded in C/C++
  128.     applications, and can either call or be called by your routines
  129.         through a documented interface.  The XS preprocessor is provided to
  130.         make it easy to glue your C/C++ routines into Perl.  Dynamic
  131.         loading of modules is supported.  See perlapi(1), perlcall(1), and
  132.         DynaLoader(3pm). 
  133.     * POSIX compliant:  A major new module is the POSIX module, which
  134.     provides access to all available POSIX routines and definitions.
  135.         Seee POSIX(3pm).
  136.     * Package constructors and destructors:  The new BEGIN and END blocks
  137.         provide means to capture control as a package is being compiled and
  138.         after the program exits.  As a degenerate case, they work just like
  139.         awk's BEGIN and END when you use the -p or -n switches.  See
  140.         perlmod(1). 
  141.     * Multiple simultaneous DBM implementations:  A perl program now has
  142.         access to DBM, NDBM, SDBM, GDBM and Berkeley DB files in the same
  143.         script.  The dbmopen interface has been generalized to allow any
  144.         variable to be tied to an object class which defines its access
  145.         methods.  tie/untie now preferable to dbmopen/dbmclose.  See the
  146.         tie() entry in perlfunc(1) and the DB_File(3pm) man pages.
  147.     * Subroutine definitions may now be autoloaded:  The AUTOLOAD mechanism
  148.         allows any arbitrary semantics to undefined subroutine calls.  See
  149.         the section on Autoloading in the perlsub(1) manpage.
  150.     * Regular Expression Enhancements:  Qualifiers may be followed by a "?"
  151.     to signify that they should be non-greedy.  A "?" directly after
  152.     an opening paren indicates non backreference grouping and the next
  153.     character determines the purpose of the match (?:a|b|c) will match
  154.     any of a b or c without producing a backreference, (?=stuff) does
  155.     a non-eating look ahead to assure that the next thing is stuff, 
  156.     (?!nonsense) looks ahead to assure that the next thing must not
  157.     be "nonsense".  Embedded whitespace and comments for readability.  
  158.     A consistent extensibility mechanism has been added that is 
  159.     upwardly compatible with all old regexps.  Variables may now be 
  160.     interpolated literally into a pattern with \Q or the quotemeta 
  161.     fuction, which works like \U but backwhacks non-alphanumerics.  
  162.     New m and s "flags" for pattern matching force multi- or 
  163.     single-line matching.  The "s" makes "." match "\n".  \A and
  164.     \Z anchor matches to the beginning and end of a string and ignore
  165.     multiline semantics.  \G matches where the previous m//g or s///g
  166.     left off.
  167.     * The -w (warnings) switch is much more informative.
  168.     * References and Objects (see t/op/ref.t) for examples.
  169.     * => is a synonym for comma and helps group paired arguments, such
  170.     as initializers for associative arrays and named arguments to
  171.     subroutines.
  172.     * All functions, even predeclared subroutines, are treated as list
  173.         operators or unary operators.  Parens are optional. 
  174.     * Flattened interpreter:  Compare perl4's eval.c with perl5's pp.c.
  175.     Compare perl4's 900 line interpreter look with perl5's one line.
  176.     * eval is now treated like a subroutine call, meaning (among other
  177.     things) you can return from it.
  178.     * format value lists may be spread over multiple lines with a do {}
  179.     block.
  180.     * flags on the #! line are interpreted even if the script wasn't
  181.     invoked directly.
  182.     * ?: is now an lvalue.
  183.     * list context now propogates to the right side of && and ||, and
  184.     as the 2nd and 3rd arguments of ?:
  185.     * preferred package delimeter now :: rather than '.
  186.     * new "and" and "or" operators, like && and || but with a lower
  187.     precedence than comma, so they work better with list operators.
  188.     * New functions abs(), chr(), uc(), ucfirst(), lc(), and lcfirst()
  189.     * require(number) checks to see that the version is at least that
  190.     version
  191.     * qw//, which is equivalent to split(' ', q//)
  192.     * assignment of a reference to a glob replaces the single element
  193.     of the glob corresponding to the reference type:
  194.         *foo = \$bar, * foo = \&bletch;
  195.     * filehandle methods are supported:
  196.     output_autoflush STDOUT 1;
  197.     * Autoload stubs can now call the replacement subroutine with
  198.     goto &realsub.
  199.     * Subroutines can be defined lazily in any package by declaring
  200.     an AUTOLOAD routine, which will be called if a non-existant
  201.     subroutine is called in that package.
  202.     * "use" and "no" subsume many feautres.  "use Module LIST" is
  203.     short for "BEGIN { require Module; import Module LIST }"
  204.     "no" is identical, except that it calls "unimport" instead.
  205.     "use integer" and variations of "use strict [vars,refs,subs]"
  206.     were implemented through new modules.
  207.  
  208. (Thanks to Tom Christiansen* for this section)
  209.  
  210.  
  211. 1.4) Where can I get docs on perl5?
  212.   
  213.     The complete perl documentation is available with the Perl
  214.     distribution, or can be accessed from the following sites.
  215.     Note that the PerlDoc ps file is 240 pages long!! 
  216.   
  217.     Marked Up (HTML) format:
  218.         http://www.metronet.com/0/perlinfo/perl5/manual/perl.html
  219.         http://web.nexor.co.uk/perl/perl.html                    (Europe)
  220.  
  221.     PostScript:
  222.         ftp://ftp.uu.net/languages/perl/PerlDoc.ps.gz
  223.         ftp://prep.ai.mit.edu/pub/gnu/PerlDoc.ps.gz
  224.         ftp://ftp.cbi.tamucc.edu/pub/duff/Perl/PerlDoc.ps.gz
  225.         ftp://www.metronet.com/pub/perlinfo/perl5/manual/PerlDoc.ps.gz
  226.         ftp://ftp.zrz.tu-berlin.de/pub/unix/perl/PerlDoc.ps.gz  (Europe)
  227.         ftp://ftp.cs.ruu.nl/pub/PERL/perl5.0/PerlDoc.ps.gz      (Europe)
  228.         ftp://sungear.mame.mu.oz.au/pub/perl/doc/PerlDoc.ps.gz  (Oz)
  229.  
  230.     TeXinfo (Emacs) Format:
  231.         ftp://www.metronet.com/pub/perl/perl5/manual/perl5-info.tar.gz
  232.  
  233.  
  234. 1.5) Will perl5 break my perl4 scripts?
  235.   
  236.     In general, no.  However, certain bad old practices have become highly
  237.     frowned upon.  The following are the most important of the known
  238.     incompatibilies between perl4 and perl5.  See perltrap(1) for more 
  239.     details.
  240.   
  241.     * "@" ***ALWAYS*** interpolate in double quoted strings.  Non-array
  242.     "@"s must be escaped: 
  243.         Mail("foo@bar.com") needs to be
  244.         Mail("foo\@bar.com"); 
  245.     The compiler catches this.
  246.     * "open FILE || die" needs to be "open(FILE) || die".  The compiler
  247.       forgives you for this, but won't stop complaining until you fix it.
  248.     * Barewords are no longer (necessarily) strings: they will actually
  249.       call the function (if it existed when that code was compiled)
  250.       instead of returning a string of that value.  Check your 
  251.       signal handlers.  The 'use strict subs' pragma (see strict(3pm))
  252.       will help you with this.
  253.     * "shift @x + 20" needs to be "shift(@x) + 20" because of precedence,
  254.       and likewise "$y = scalar keys %foo + 30" needs to be instead 
  255.       "$y = scalar keys(%foo) + 30".
  256.     * The internal symbol table is called %{PACKAGE::} for any given 
  257.       package.  It used to be %{_PACKAGE}.
  258.     * You may no longer (attempt to) write to read-only variables, like $1,
  259.       or assign to a substr() past the end of a string.
  260.     * Various deprecated practices elicit warning messages.
  261.   
  262.  
  263. 1.6) When will Perl stabilize?
  264.   
  265. When asked at what point the Perl code would be frozen, Larry answere:
  266.   
  267.     Part of the redesign of Perl is to *allow* us to more or less freeze
  268.     the language itself.  It won't totally freeze, of course, but I think
  269.     the rate of change of the core of the language is asymptotically
  270.     approaching 0.  In fact, as time goes on, now that we have an official
  271.     extension mechanism, some of the things that are currently in the core
  272.     of the language may move out (transparently) as extensions.  This has
  273.     already happened to dbmopen().
  274.   
  275.     I've also been continuously reminding myself of what Henry Spencer
  276.     calls "second system syndrome", in which everything under the sun gets
  277.     added, resulting in a colossal kludge, like OS 360.  You'll find that
  278.     the new features in Perl 5 are all pretty minimalistic.  The
  279.     object-oriented features in particular added only one new piece of
  280.     syntax, a C++-style method call.
  281.   
  282.     : The whole idea
  283.     : Perl is to be a fast text-processing, system-maintenance, zero-startup
  284.     : time language. If it gets to be so large and complicated that it isn't
  285.     : fast-running and easy to use, it won't be to anyone's benefit.
  286.   
  287.     My motto from the start has been, "If it ain't broke, don't fix it."
  288.     I've been trying very hard not to remove those features from Perl that
  289.     make it what it is.  At the same time, a lot of streamlining has gone
  290.     into the syntax.  The new yacc file is about half the size of the old
  291.     one, and the number of official reserved words has been cut by 2/3.
  292.     All built-in functions have been unified (dualified?) as either list
  293.     operators or unary operators.
  294.   
  295.     : I really like a lot of the features in Perl, but in order for Perl to
  296.     : be useful on a long term basis, those features have to stay put. I
  297.     : bought the Camel book less than a year ago and it sounds like within
  298.     : another year it will be obsolete.
  299.   
  300.     The parts of Perl that the Camel book covers have not changed all that
  301.     much.  Most old scripts still run.  Many scripts from Perl version 1.0
  302.     still run.  We'll certainly be revising the Camel, but the new man
  303.     pages are split up such that it's pretty easy to ferret out the new
  304.     info when you want it.
  305.   
  306.     We did break a few misfeatures in going to Perl 5.  It seemed like the
  307.     first and last chance to do so.  There's a list of the
  308.     incompatibilities in the documentation. 
  309.   
  310.     : Not only is it a lot of work to recompile Perl
  311.     : on 20+ machines periodically, but it's hard to write scripts that are 
  312.     : useful in the long term if the guts of the language keep changing.
  313.     : (And if I keep having to buy new books. I keep hearing about new
  314.     : features of Perl 5 that aren't documented in any of the perl 5
  315.     : documentation that *I* can find.)
  316.   
  317.     I think you'll find a lot of folks who think that 4.036 has been a
  318.     pretty stable platform.
  319.   
  320.     Perl 5 is a special case.  I've been working on it for years.  (This is
  321.     part of the reason 4.036 has been so stable!)  There are many changes,
  322.     most of them for the better, I hope.  I don't expect the transition to
  323.     be without pain.  But that's why I stuck numbered versions out in your
  324.     bin directory, so that you can upgrade piecemeal if you like.  And
  325.     that's why I made the -w switch warn about many of the incompatibilities.
  326.   
  327.     And overriding all that, I've tried to keep it so that you don't have
  328.     to know much about the new stuff to use the old stuff.  You can upgrade
  329.     your *knowledge* piecemeal too.
  330.   
  331.     The extension mechanism is designed to take over most of the
  332.     evolutionary role from now on.  And it's set up so that, if you don't
  333.     have a particular extension, you know it right up at the front. 
  334.   
  335.     : Are there any plans to write a Perl compiler? While interpreted Perl
  336.     : is great for many applications, it would also be cool to be able to
  337.     : precompile many scripts. (Yes, I know you can undump things, but
  338.     : undump isn't provided with Perl and I haven't found a copy.) The
  339.     : creation of a perl library and dynamically-loadable modules seems
  340.     : like a step in that direction.  
  341.   
  342.     Yes, part of the design of Perl 5 was to make it *possible* to write a 
  343.     compiler for it.  It could even be done as an extension module, I
  344.     suppose.  Anyone looking for a master's thesis topic?
  345.   
  346.     In summary, almost every concern that you might think of has already
  347.     been (at least) thought about.  In a perfect world, every concern
  348.     could be addressed perfectly.  But in this world we just have to slog
  349.     through.
  350.   
  351.  
  352. 1.7) What's the difference between "perl" and "Perl"?
  353.  
  354.     32!  [ ord('p') - ord('P') ]  (Shouldn't that be 42, the Answer to the
  355.         Great Question of Life, the Universe, and Everything?  ;) 
  356.  
  357.     Larry now uses "Perl" to signify the language proper and "perl" the
  358.     implementation of it, i.e. the current interpreter.  Hence Tom's
  359.     quip that "Nothing but perl can parse Perl."
  360.  
  361.     On the other hand, the aesthetic value of casewise parallelism in
  362.     "awk", "sed", and "perl" as much require the lower-case version as "C",
  363.     "Pascal", and "Perl" require the upper-case version.  It's also easier
  364.     to type "Perl" in typeset print than to be constantly switching in
  365.     Courier. :-) 
  366.     
  367.     In other words, it doesn't matter much, especially if all you're doing
  368.     is hearing someone talk about the language; case is hard to distinguish
  369.     aurally. 
  370.  
  371.  
  372. 1.8) Is it a perl program or a perl script?
  373.  
  374.     It depends on whether you are talking about the perl binary or
  375.     something that you wrote using perl.  And, actually, even this isn't
  376.     necessarily true.
  377.  
  378.     "Standard" UNIX terminology is (roughly) this:  programs are compiled
  379.     into machine code once and run multiple times, scripts are translated
  380.     (by a program) each time they are used.  However, some say that a
  381.     program is anything written which is executed on a computer system.
  382.     Larry considers it a program if it is set in stone and you can't change
  383.     it, whereas if you can go in and hack at it, it's a script.  Of course,
  384.     if you have the source code, that makes just about anything a
  385.     script.  ;)
  386.  
  387.     In general, it probably doesn't really matter.  The terms are used
  388.     interchangeably.  If you particularly like one or the other, use it.  If
  389.     you want to call yourself a perl programmer, call them programs.  If
  390.     you want to call yourself a perl scripter, call them scripts.  Randal*
  391.     and I (at least) will call them hacks.  (See question 2.10 ;)
  392.  
  393. 1.9) Is perl difficult to learn?
  394.     
  395.     Not at all.  Many people find Perl extremely easy to learn.  There are
  396.     at least three main reasons for this.
  397.  
  398.     The first reason is that most of Perl has been derived from standard
  399.     utilities, tools, and languages that you are (probably) already
  400.     familiar with.  If you have any knowledge of the C programming language
  401.     and standard C library, the Unix Shell, sed and awk, Perl should be
  402.     simple and fun for you to learn.
  403.  
  404.     The second reason that Perl is easy to learn is that you only have to
  405.     know a very small subset of Perl to be able to get useful results.  In
  406.     fact, once you can master
  407.  
  408.         #!/usr/local/bin/perl
  409.      print "Hello, world\n";
  410.  
  411.     you can start writing Perl scripts.  In fact, you will probably never
  412.     have to (or be able to) know everything about Perl.  As you feel the
  413.     need or desire to use more sophisticated features (such as C structures
  414.     or networking), you can learn these as you go.  The learning curve for
  415.     Perl is not a steep one, especially if you have the headstart of having 
  416.     a background in UNIX.  Rather, its learning curve is gentle and
  417.     gradual, but it *is* admittedly rather long. 
  418.  
  419.     The third reason is that you can get immediate results from your
  420.     scripts.  Unlike a normal compiled language (like C or Pascal, for
  421.     example), you don't have to continually recompile your program every
  422.     time you change one little thing.  Perl allows you to experiment and
  423.     test/debug quickly and easily.  This ease of experimentation flattens
  424.     the learning curve even more.
  425.  
  426.     If you don't know C or UNIX at all, it'll be a steeper learning curve,
  427.     but what you then learn from Perl will carry over into other areas,
  428.     like using the C library, UNIX system calls, regular expressions, and 
  429.     associative arrays, just to name a few.  To know Perl is to know UNIX,
  430.     and vice versa. 
  431.  
  432.  
  433. 1.10) Should I program everything in Perl?
  434.  
  435.     Most definitely.  In fact, you should delete the binaries for sed, awk,
  436.     cc, gcc, grep, rm, ls, cat... well, just delete your /bin directory.
  437.  
  438.     But seriously, of course you shouldn't.  As with any job, you should
  439.     use the appropriate tool for the task at hand.  Just because a hammer 
  440.     will put screws into a piece of board, you probably don't want to do
  441.     that.
  442.  
  443.     While it's true that the answer to the question "Can I do (some
  444.     arbitrary task) in Perl?" is almost always "yes", that doesn't mean
  445.     this is necessarily a good thing to do.  For many people, Perl serves
  446.     as a great replacement for shell programming.  For a few people, it
  447.     also serves as a replacement for most of what they'd do in C.  But for
  448.     some things, Perl just isn't the optimal choice, such as tasks
  449.     requiring very complex data structures.
  450.  
  451. 1.11) How does Perl compare with other scripting languages, like Tcl, Python
  452.      or REXX?
  453.  
  454.     REXX is an interpreted programming language first seen on IBM systems.
  455.     Python is an interpreted programming language by Guido van Rossum*.
  456.     TCL is John Ousterhout*'s embeddable command language, designed just
  457.     for embedded command extensions, but lately used for larger
  458.     applications.  TCL's most intriguing feature for many people is the
  459.     tcl/tk toolset that allows for interpreted X-based tools.  Others use
  460.     it for its "expect" extension.
  461.  
  462.     To avoid any flamage, if you really want to know the answer to this
  463.     question, probably the best thing to do is try to write equivalent
  464.     code to do a set of tasks.  All three have their own newsgroups in
  465.     which you can learn about (but hopefully not argue about) these
  466.     languages.
  467.  
  468.     To find out more about these or other languages, you might also check
  469.     out David Muir Sharnoff*'s posting "Catalog of Compilers, Interpreters,
  470.     and Other Language Tools" which he posts to comp.lang.misc,
  471.     comp.sources.d, comp.archives.admin, and news.answers newsgroups.  It's
  472.     a comprehensive treatment of many different languages.  (Caveat lector:
  473.     he considers Perl's syntax "unappealing".)
  474.  
  475.  
  476. 1.12) How can I get Perl over the Internet?
  477.  
  478.     Perl is available from any comp.sources.misc archive.  You can use an
  479.     archie server (see the alt.sources FAQ in news.answers) to find these
  480.     if you want.
  481.  
  482.       Version 4:
  483.     Volume    Issues    Patchlevel and Notes
  484.     ------    ------    ------------------------------------------------
  485.       18    19-54    Patchlevel 3, Initial posting.
  486.       20    56-62    Patches 4-10    
  487.  
  488.       Version 5:
  489.         Volume    Issues    Patchlevel and Notes
  490.         ------    ------    -----------------------------------------------
  491.           45    64-128    Initial Posting, patchlevel 0.
  492.  
  493.     Since 1993, a number of archives have sprung up specifically for Perl
  494.     and Perl related items.  Larry maintains the official distribution
  495.     site (for both perl4.036 and perl5) at netlabs.  Probably the largest
  496.     archive is at the University of Florida.  In order of probability these
  497.     sites will have the sources.
  498.  
  499.     Site            IP                Directory and notes    
  500.     -----------        -------        ------------------------------- 
  501.     North America:
  502.     ftp.netlabs.com     192.94.48.152   /pub/outgoing/perl[VERSION]/
  503.     ftp.cis.ufl.edu        128.227.100.198 /pub/perl/src/[VERSION]/
  504.         prep.ai.mit.edu        18.71.0.38         /pub/gnu/perl5.001.tar.gz
  505.         ftp.uu.net          192.48.96.9        /languages/perl/perl5.001.tar.gz
  506.         ftp.khoros.unm.edu  198.59.155.28   /pub/perl/perl5.001.tar.gz
  507.         ftp.cbi.tamucc.edu  165.95.1.3        /pub/duff/Perl/perl5.001.tar.gz
  508.     ftp.metronet.com    192.245.137.1   /pub/perl/sources/
  509.         genetics.upenn.edu  128.91.200.37   /perl5/perl5_000.zip
  510.  
  511.     Europe:
  512.         ftp.cs.ruu.nl        131.211.80.17   /pub/PERL/perl5.0/perl5.001.tar.gz
  513.         ftp.funet.fi        128.214.248.6   
  514.                             /pub/languages/perl/ports/perl5/perl5.001.tar.gz
  515.         ftp.zrz.tu-berlin.de 130.149.4.40   /pub/unix/perl/perl5.001.tar.gz
  516.         src.doc.ic.ac.uk    146.169.17.5    /packages/perl5/perl5.001.tar.gz
  517.   
  518.     Australia:
  519.         sungear.mame.mu.oz.au 128.250.209.2 /pub/perl/src/5.0/perl5.001.tar.gz
  520.  
  521.     South America (mirror of prep.ai.mit.edu:/pub/gnu):
  522.         ftp.inf.utfsm.cl    146.83.198.3    /pub/gnu/perl5.001.tar.gz
  523.  
  524.     If there is a site in Asia or Japan, please tell us about it.  Thanks! 
  525.  
  526.     You can also retrieve perl via non-ftp methods:
  527.   
  528.         http: //src.doc.ic.ac.uk/packages/perl5/perl5.001.tar.gz
  529.         gopher:       //src.doc.ic.ac.uk/0/packages/perl5/perl5.001.tar.gz
  530.  
  531.  
  532. 1.13) How can I get Perl via Email?
  533.  
  534.     The following is a list of known ftpmail sites.  Please attempt to use
  535.     the site closest to you with the ftp archive closest to it.  Many of
  536.     these sites already have perl on them.  For information on how to use
  537.     one of these sites, send email containing the word "help" to the
  538.     address.
  539.  
  540.     United States:
  541.         Massachusetts:    ftpmail@decwrl.dec.com
  542.         New Jersey:        bitftp@pucc.princeton.edu
  543.         North Carolina:    ftpmail@sunsite.unc.edu
  544.  
  545.     Europe/UK:
  546.         Germany:        ftpmail@ftp.uni-stuttgart.de
  547.                 bitftp@vx.gmd.de
  548.         UK:            ftpmail@doc.ic.ac.uk
  549.  
  550.     Australia:        ftpmail@cs.uow.edu.au
  551.  
  552.     Henk P Penning* suggests that if you are in Europe you should try the
  553.     following (if you are in Germany or the UK, you should probably use one
  554.     of the servers listed above): 
  555.  
  556.         Email: Send a message to 'mail-server@cs.ruu.nl' containing:
  557.      begin
  558.      path your_email_address
  559.      send help
  560.      send PERL/INDEX
  561.      end
  562.     The path-line may be omitted if your message contains a normal
  563.     From:-line.  You will receive a help-file and an index of the
  564.     directory that contains the Perl stuff.
  565.  
  566.     If all else fails, mail to Larry usually suffices.
  567.  
  568.  
  569. 1.14) How can I get Perl via UUCP?
  570.  
  571.     There currently is no way of getting Perl via UUCP.  If anyone knows of
  572.     a way, please contact me.  The OSU site has discontinued the service.
  573.  
  574.  
  575. 1.15) Are there other ways of getting perl?
  576.  
  577.     Another possibility is to use UUNET, although they charge you for it.
  578.     You have been duly warned.  Here's the advertisement: 
  579.  
  580.            Anonymous Access to UUNET's Source Archives
  581.  
  582.                  1-900-GOT-SRCS
  583.  
  584.     UUNET now provides access to its extensive collection of UNIX
  585.     related sources to non- subscribers.  By  calling  1-900-468-7727
  586.     and  using the login "uucp" with no password, anyone may uucp any
  587.     of UUNET's on line source collection.  Callers will be charged 40
  588.     cents  per  minute.   The charges will appear on their next tele-
  589.     phone bill.
  590.  
  591.      The file uunet!/info/help contains instructions.   The  file
  592.     uunet!/index//ls-lR.Z  contains  a  complete  list  of  the files 
  593.     available  and is  updated daily.   Files ending  in Z need to be 
  594.     uncompressed before being used.  The file uunet!~/compress.tar is
  595.     a tar archive containing the C sources for the uncompress program. 
  596.  
  597.      This service provides a  cost  effective  way  of  obtaining
  598.     current  releases  of sources without having to maintain accounts
  599.     with UUNET or some other service.  All modems  connected  to  the
  600.     900  number  are  Telebit T2500 modems.  These modems support all
  601.     standard modem speeds including PEP, V.32 (9600), V.22bis (2400),
  602.     Bell  212a  (1200), and Bell 103 (300).  Using PEP or V.32, a 1.5
  603.     megabyte file such as the GNU C compiler would cost $10  in  con-
  604.     nect  charges.   The  entire  55  megabyte X Window system V11 R4
  605.     would cost only $370 in connect time.  These costs are less  than
  606.     the  official  tape  distribution fees and they are available now
  607.     via modem.
  608.  
  609.               UUNET Communications Services
  610.            3110 Fairview Park Drive, Suite 570
  611.              Falls Church, VA 22042
  612.              +1 703 876 5050 (voice)
  613.               +1 703 876 5059 (fax)
  614.                 info@uunet.uu.net
  615.  
  616.  
  617. 1.16) Has perl been ported to machine FOO?
  618.  
  619.     Perl runs on virtually all Unix machines simply by following the hints
  620.     file and instructions in the Configure script.  This auto-configuration
  621.     script allows Perl to compile on a wide variety of platforms by
  622.     modifying the machine specific parts of the code.  For most Unix
  623.     systems, or VMS systems for v5 perl, no porting is required.  Try to
  624.     compile Perl on your machine.  If you have problems, examine the README
  625.     file carefully.  If all else fails, send a message to comp.lang.perl
  626.     and crosspost to comp.sys.[whatever], there's probably someone out
  627.     there that has already solved your problem and will be able to help you
  628.     out. 
  629.  
  630.     Perl4.036 has been ported to many non-Unix systems, although currently
  631.     there are only a few (beta) v5 ports.  All of the following are
  632.     mirrored at ftp.cis.ufl.edu:/pub/perl/src/[OS]/.  The following are the
  633.     (known) official distribution points.  Please contact the porters
  634.     directly (when possible) in case of questions on these ports.
  635.  
  636.     * MS-DOS binaries and source are available at ftp.ee.umanitoba.ca
  637.       [130.179.8.47] in /pub/msdos/perl/perl4
  638.       There are currently half a dozen different ports for MS-DOS.
  639.       BigPerl4 (v4) is perl4.036 compiled with the Watcom C/C++^32
  640.       compiler (32-bit, flat-memory model C compiler) with the
  641.       following features:
  642.         * Up to 32MB of memory can be used.
  643.         * Supports virtual memory.
  644.         * Works under Windows 3.1 
  645.         * The perl debugger can be used.
  646.         * Contains Berkeley DB support.  GDBM is no longer supported.
  647.  
  648.       Note that the latest version of BigPerl4 can also be found at
  649.       any SimTel mirror site (ftp.ee.umanitoba.ca does not
  650.       necessarily have the latest version), such as:
  651.  
  652.         ftp://oak.oakland.edu/SimTel/msdos/perl/
  653.  
  654.           A beta-test version of bigperl based on Perl 5.000 can be
  655.           obtained from the following sites:
  656.  
  657.             ftp.einet.net:/pub/perl5
  658.             ftp.khoros.unm.edu:/pub/perl/msdos
  659.             ftp.ee.umanitoba.ca:/pub/msdos/perl/perl5
  660.  
  661.           This beta-test bigperl also contains ported versions of a2p and
  662.           s2p. 
  663.  
  664.     * Windows/NT binaries are available from ftp.intergraph.com in
  665.           /pub/win32/perl.  They are compiled for NT 3.5.
  666.  
  667.     * Machintosh binaries and source are available from nic.switch.ch
  668.       [130.59.1.40] in /software/mac/perl.
  669.       Version 4.1.3 is perl4.036 compiled with the MPW C compiler
  670.         * Mac_Perl_413_src.sit.bin        Sources
  671.         * Mac_Perl_413_tool.sit.bin        MPW Tool
  672.         * Mac_Perl_413_appl.sit.bin        Standalone Application
  673.       There is a mailing list for discussing Macintosh Perl.  Contact
  674.       "mpw-perl-request@iis.ee.ethz.ch".
  675.  
  676.       Timothy Murphy* also ported a version of perl to the Macintosh
  677.       using Think C.  It has probably been abandoned in favour of the
  678.       MPW port, but is still available at ftp.maths.tcd.ie
  679.       [134.266.81.10] in the directory /pub/Mac/perl-4.035/.
  680.  
  681.           Matthias Ulrich Neeracher* is working on a perl5 port to the
  682.           Macintosh.  A PowerPC version is available at 
  683.           ftp://err.ethz.ch/pub/neeri/MacPerlBeta.
  684.  
  685.     * OS/2 sources are also available at ftp.cis.ufl.edu in
  686.       /pub/perl/src/os2.  This appears to have been abandoned and added
  687.       to the official distribution.  See the directory os2 in the perl5
  688.       sources.
  689.  
  690.     * VMS systems should be able to build directly from the standard
  691.       distribution.
  692.  
  693.         * Amiga sources are not available from ftp.cis.ufl.edu, but can
  694.           be found at any Aminet archive, notably:
  695.             * ftp://ftp.wustl.edu/pub/aminet/dev/lang/
  696.             * ftp://ftp.uni-erlangen.de/pub/aminet/dev/lang/
  697.             * ftp://ftp.doc.ic.ac.uk/pub/aminet/dev/lang/
  698.             * ftp://ftp.funet.fi/pub/languages/perl/ports/perl4/amiga
  699.  
  700. 1.17) How do I get Perl to compile on Solaris?
  701.  
  702.     The following directions are for perl, version 4.  Perl, version 5,
  703.     should compile more easily.  If not, send mail to The Perl Porters
  704.     Mailing List (perl5-porters@nicoh.com)
  705.  
  706.     John Lees* reports:
  707.  
  708.         I have built perl on Solaris 2.1, 2.2 beta, and 2.2 FCS. Take
  709.     /usr/ucb out of your path and do not use any BSD/UCB libraries.
  710.     Only -lsocket, -lnsl, and -lm are needed. You can use the hint for
  711.     Solaris 2.0, but the one for 2.1 is wrong. Do not use vfork. Do not
  712.     use -I/usr/ucbinclude.  The result works fine for me, but of couse
  713.     does not support a couple of BSDism's.
  714.  
  715.     Casper H.S. Dik* reports
  716.  
  717.         You must remove all the references to /usr/ucblib AND
  718.         /usr/ucbinclude.  And ignore the Solaris_2.1 hints. They are wrong.
  719.         The undefining of vfork() probably has to do with the confusion it 
  720.         gives to the compilers.  If you use cc, you mustn't compile
  721.     util.c/tutil.c  with -O.  I only used the following libs: -lsocket 
  722.     -lnsl -lm (there is a problem with -lmalloc)
  723.  
  724.     Michael D'Errico* reports:
  725.  
  726.         If you are using Solaris 2.x, the signal handling is broken.  If
  727.     you set up a signal handler such as 'ripper' it will be forgotten
  728.     after the first time the signal is caught.  To fix this, you need
  729.     to recompile Perl.  Just add '#define signal(x,y) sigset((x),(y))'
  730.     after the '#include <signal.h>' directive in each file that it
  731.     occurs, then make it again. 
  732.  
  733.  
  734. 1.18) How do I get Perl to compile on a Next?
  735.  
  736.     According to Andreas Koenig*, under NeXTstep 3.2, both perl4.036 and
  737.     perl5.000 compile with the supplied hints file. 
  738.  
  739.     However, Bill Eldridge* provides this message to help get perl4.036 on
  740.     NeXTstep 3.0 to work: 
  741.  
  742.         To get perl to compile on NeXTs, you need to combine the ANSI
  743.         and BSD headers:
  744.  
  745.         cd /usr/include
  746.         mkdir ansibsd
  747.         cd ansibsd
  748.         ln -s ../ansi
  749.         ln -s ../bsd
  750.  
  751.         Then, follow the configuration instructions for NeXTs, *replacing*
  752.         all mention of -I/usr/include/ansi or -I/usr/include/bsd with
  753.         -I/usr/include/ansibsd.
  754.  
  755.  
  756. 1.19) What extensions are available from Perl and where can I get them?
  757.   
  758.     Some of the more popular extensions include those for windowing,
  759.     graphics, or data base work.  See perlmod(1). 
  760.   
  761.     Tk (as in tcl/tk, but sans tcl) 
  762.  
  763.       ftp://ftp.cis.ufl.edu/pub/perl/src/tkperl/tkperl5a5.tar.gz
  764.       ftp://ftp.khoros.unm.edu/pub/perl/extensions/tkperl5a5.tar.gz
  765.       ftp://ftp.metronet.com/pub/perlinfo/perl5/tkperl/tkperl5a5.tar.gz
  766.       ftp://ftp.cs.ruu.nl/pub/PERL/perl5.0/tkperl5a5.tar.gz
  767.       ftp://black.ox.ac.uk/src/ALPHA/tkperl5a5.tar.gz
  768.  
  769.     Curses (standard C library)
  770.       ftp://ftp.ncsu.edu/pub/math/wsetzer/cursperl5a6.tar.gz
  771.       ftp://ftp.metronet.com/pub/perlinfo/perl5/cursperl5a6.tar.gz
  772.       ftp://ftp.cs.ruu.nl/pub/PERL/perl5.0/cursperl5a6.tar.gz
  773.  
  774.     Msql (SQL)
  775.       ftp://ftp.zrz.TU-Berlin.DE/pub/unix/perl/MsqlPerl-a1.tgz
  776.       ftp://ftp.khoros.unm.edu/pub/perl/extensions/MsqlPerl-a1.tgz
  777.       ftp://ftp.metronet.com/pub/perlinfo/perl5/MsqlPerl5-a1.tgz
  778.       ftp://ftp.cs.ruu.nl/pub/PERL/perl5.0/MsqlPerl-a1.tar.gz
  779.  
  780.     Sx (Athena & Xlib)
  781.       ftp://ftp.pasteur.fr/pub/Perl/Sx.tar.gz
  782.       ftp://ftp.khoros.unm.edu/pub/perl/extensions/Sx.tar.gz
  783.       ftp://ftp.metronet.com/pub/perlinfo/perl5/Sx.tar.gz
  784.       ftp://ftp.cs.ruu.nl/pub/PERL/perl5.0/PerlDoc.ps.gz
  785.  
  786. 1.20) What is dbperl and where can I get it?
  787.  
  788.     Many database-oriented extensions to Perl have been written.
  789.     Basically, these use the usub mechanism (see the usub/ subdirectory) in
  790.     the source distribution) to link in a database library, allowing
  791.     embedded calls to Informix, Ingres, Interbase, Oracle and Sybase.
  792.  
  793.     Here are the authors of the various extensions:
  794.  
  795.     What            Target DB       Who
  796.     --------        -----------     ----------------------------------------
  797.     ?Infoperl       Informix        Kurt Andersen (kurt@hpsdid.sdd.hp.com)
  798.     Ingperl        Ingres        Tim Bunce (timbo@ig.co.uk) and Ted Lemon
  799.     Interperl       Interbase       Buzz Moschetti (buzz@bear.com)
  800.     Isqlperl        Informix        William Hails, bill@tardis.co.uk
  801.     Oraperl         Oracle          Kevin Stock (kstock@Auspex.com)
  802.     Pgperl        Postgres        Igor Metz (metz@iam.unibe.ch)
  803.     *Sqlperl        Ingres          Ted Lemon (mellon@ncd.com)
  804.     Sybperl         Sybase          Michael Peppler (mpeppler@itf.ch)
  805.     Uniperl        Unify 5.0        Rick Wargo (rickers@coe.drexel.edu)
  806.  
  807.     ? Does this one still exist?
  808.     * Sqlperl appears to have been subsumed by Ingperl
  809.  
  810.     Buzz Moschetti* has organized a project to create a higher level
  811.     interface to allow you to write your queries in a database-independent
  812.     fashion.  If this type of project interests you, send mail to
  813.     <perldb-interest-request@vix.com> and asked to be placed on the 
  814.     "perldb-interest" mailing lists.
  815.  
  816.     Here's a bit of advertising from Buzz:
  817.  
  818.     Perl is an interpreted language with powerful string, scalar, and
  819.     array processing features developed by Larry Wall that "nicely
  820.     bridges the functionality gap between sh(1) and C."  Since
  821.     relational DB operations are typically textually oriented, perl is
  822.     particularly well-suited to manage the data flows.  The C source
  823.     code, which is available free of charge and runs on many platforms,
  824.     contains a user-defined function entry point that permits a
  825.     developer to extend the basic function set of the language.  The
  826.     DBperl Group seeks to exploit this capability by creating a
  827.     standardized set of perl function extensions (e.g. db_fetch(),
  828.     db_attach()) based the SQL model for manipulating a relational DB,
  829.     thus providing a portable perl interface to a variety of popular
  830.     RDMS engines including Sybase, Oracle, Ingres, Informix, and
  831.     Interbase.  In theory, any DB engine that implements a dynamic SQL
  832.     interpreter in its HLI can be bolted onto the perl front end with
  833.     predicatable results, although at this time backends exist only for
  834.     the aforementioned five DB engines. 
  835.  
  836.     The official archive for DBperl extensions is ftp.demon.co.uk:
  837.     /pub/perl/db.  It's the home of the evolving DBperl API Specification.
  838.     Here's an extract from the updated README there:
  839.  
  840.     DBI/        The home of the DBI archive. To join the DBI mailing list
  841.                 send your request to perldb-interest-REQUEST@vix.com
  842.  
  843.     DBD/        Database Drivers for the DBI ...
  844.      
  845.     Oracle/      By Tim Bunce (not yet ready!) 
  846.     Ingres/      By Tim Bunce (not yet started!) 
  847.  
  848.     mod/           Other Perl 5 Modules and Extensions ...
  849.  
  850.     Sybperl/    By Michael Peppler, mpeppler@itf.ch
  851.  
  852.  
  853.     perl4/         Perl 4 extensions (using the usub C interface)
  854.  
  855.        oraperl/   ORACLE 6 & 7  By Kevin Stock, kstock@auspex.com 
  856.        sybperl/   SYBASE 4      By Michael Peppler, mpeppler@itf.ch
  857.        ingperl/   INGRES        By Tim Bunce timbo@ig.co.uk and Ted Lemon
  858.        isqlperl/  INFORMIX      By William Hails, bill@tardis.co.uk
  859.        interperl/ INTERBASE     By Buzz Moschetti, buzz@bear.com
  860.        oraperl/   ORACLE 6 & 7  By Kevin Stock (sadly no longer on the net)
  861.        sybperl/   SYBASE 4      By Michael Peppler, mpeppler@itf.ch
  862.        ingperl/   INGRES        By Tim Bunce timbo@ig.co.uk and Ted Lemon
  863.        isqlperl/  INFORMIX      By William Hails, bill@tardis.co.uk
  864.        interperl/ INTERBASE     By Buzz Moschetti, buzz@bear.com
  865.        uniperl/   UNIFY 5.0     By Rick Wargo, rickers@coe.drexel.edu
  866.        pgperl/    POSTGRES      By Igor Metz, metz@iam.unibe.ch
  867.  
  868.        btreeperl/ NDBM perl extensions.   By John Conover, john@johncon.com
  869.        ctreeperl/ C-Tree perl extensions. By John Conover, john@johncon.com
  870.        duaperl/   X.500 Directory User Agent. By Eric Douglas.
  871.   
  872.     scripts/       Perl and shell scripts
  873.   
  874.        rdb/       RDB is a perl RDBMS for ASCII files. By Walt Hobbs,
  875.                     hobbs@rand.org 
  876.        shql/      SHQL is an interactive SQL database engine.  Written as a
  877.                     shell script, SHQL interprets SQL commands and
  878.                     manipulates flat files based on those commands. By
  879.                     Bruce Momjian, root@candle.uucp 
  880.        xbase/     Perl scripts for accessing xBase style files (dBase III) 
  881.  
  882.  
  883.    refinfo/       Reference information
  884.       
  885.        sqlsyntax/ Yacc and lex syntax and C source code for SQL1 and SQL2
  886.             from ftp.uu.net:/pub/uunet/published/oreilly/nutshell/yacclex, 
  887.             and a draft SQL3 syntax from Jeff Fried <jfried@informix.com>+      
  888.        formats/   Details of file formats such as Lotus 1-2-3 .WK1
  889.  
  890.     There are also a number of non SQL database interfaces for perl
  891.     available from ftp.demon.co.uk.  These include:
  892.  
  893.     Directory    Target System    Authors and notes
  894.     ---------    -------------    -------------------------------------------
  895.     btreeperl    NDBM extension    John Conover (john@johncon.com)
  896.     ctreeperl    CTree extension John Conover (john@johncon.com)
  897.     duaperl    X.500 DUA    Eric Douglas
  898.     rdb        RDBMS        Walt Hobbs (hobbs@rand.org)
  899.     shql    SQL Engine    Bruce Momjian (root@candle.uucp)
  900.  
  901.  
  902. 1.21) Which DBM should I use?
  903.  
  904.     As shipped, Perl (version 5) comes with interfaces for several DBM
  905.     packages (SDBM, old DBM, NDBM, GDBM, Berkeley DBM) that are not supplied  
  906.     but either come with your system are readily accessible via FTP.  SDBM
  907.     is guaranteed to be there.  For a comparison, see AnyDBM_File(3pm)
  908.     and DB_File(3pm).
  909.  
  910.     
  911. 1.22) Is there an SNMP aware Perl?
  912.  
  913.     snmperl was written by Guy Streeter (streeter@ingr.com), and was
  914.     posted in late February 1993 to comp.protocols.snmp.  It can be found
  915.     archived at one of two (known) places:
  916.  
  917.     Host liasun3.epfl.ch
  918.  
  919.     Location: /pub/net/snmp
  920.            FILE -rw-rw-r--       3407  Aug 11 1992  snmperl.README
  921.            FILE -rw-r--r--      17678  Aug 11 1992  snmperl.tar.Z
  922.  
  923.     Host ftp.cis.ufl.edu
  924.     Location: /pub/perl/scripts/snmp
  925.  
  926.     Here is the gist of the README:
  927.  
  928.     README  $Revision: 2.7 $
  929.  
  930.     This directory contains the source code to add callable C subroutines
  931.     to perl.  The subroutines implement the SNMP functions "get",
  932.     "getnext", and "set".  They use the freely-distributable SNMP package
  933.     (version 1.1b) from CMU.
  934.  
  935.     USE:
  936.       There are four subroutines defined in the callable interface:
  937.     snmp_get, snmp_next, snmp_set, and snmp_error.
  938.  
  939.       snmp_get and snmp_next implement the GET and GETNEXT operations,
  940.     respectively.  The first two calling arguments are the hostname and
  941.     Community string.  The IP address of the host, as a dotted-quad ASCII
  942.     string, may be used as the hostname.  The rest of the calling
  943.     arguments are a list of variables.  See the CMU package documentation
  944.     for how variables may be specified.
  945.       snmp_set also takes hostname and Community string as arguments.  The
  946.     remaining arguments are a list of triples consisting of variable name,
  947.     variable type, and value.  The variable type is a string, such as
  948.     "INTEGER" or "IpAddress".
  949.       snmp_get, snmp_next, and snmp_set return a list containing
  950.     alternating variables and values.  snmp_get and snmp_next will simply
  951.     omit non-existent variables on return.  snmp_set will fail completely
  952.     if one of the specified variables does not exist (or is read-only).
  953.       snmp_error will return a text string containing some error
  954.     information about the most recent snmp_get|next|set call, if it had an
  955.     error.
  956.  
  957.     OTHER NOTES:
  958.       I didn't find all the places where the CMU library writes to stderr
  959.     or calls exit() directly.
  960.       The changes I made to mib.c involve the formatting of variable values
  961.     for return to the caller.  I took out the descriptive prefix so the
  962.     string contains only the value.
  963.       Enumerated types are returned as a string containing the symbolic
  964.     representation followed in parentheses by the numeric.
  965.  
  966.     DISTRIBUTION and OWNERSHIP
  967.       perl and the CMU SNMP package have their own statements.  Read them.
  968.     The work I've done is free and clear.  Just don't say you wrote it if
  969.     you didn't, and don't say I wrote it if you change it.
  970.  
  971.     Guy Streeter
  972.     streeter@ingr.com
  973.     April 1, 1992 (not a joke!)
  974. --
  975. Stephen P Potter        spp@vx.com        Varimetrix Corporation
  976. 2350 Commerce Park Drive, Suite 4                Palm Bay, FL 32905
  977. (407) 676-3222                           CAD/CAM/CAE/Software
  978.